package com.linghang.wusthelpercompetition.service;

import com.linghang.wusthelpercompetition.dto.ResponseDTO;
import com.linghang.wusthelpercompetition.dto.ResponsePageDTO;
import com.linghang.wusthelpercompetition.dto.ResponseUpdateDTO;
import com.linghang.wusthelpercompetition.entity.CompetitionPost;
import com.linghang.wusthelpercompetition.entity.ResponsePost;
import com.linghang.wusthelpercompetition.result.PageResult;
import com.linghang.wusthelpercompetition.result.Result;
import com.linghang.wusthelpercompetition.service.impl.ResponsePostServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;


public interface ResponsePostService {
    void addResponse(ResponseDTO responseDTO);

    void deleteResponse(Long rid);

    ResponsePost getResponseById(Long rid);

//    List<ResponsePost> listMyResponses(String studentId);
//
    List<ResponsePost> listResponsesByPost(Long cid);

    void updateResponse(ResponseUpdateDTO responseUpdateDTO);

    void handleResponse(Long rid);

    PageResult pageByCidOrStudentId(ResponsePageDTO responsePageDTO);


    Long getCidByRid(Long rid);

    ResponsePost getByCidAndStudentId(Long cid, String studentId);

    List<Long> selectCidsByStudentId(String studentId);

    Long getTotalByStudentId(String studentId);
}
